package com.zbkj.common.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 商品规格属性添加对象
 * </p>
 *
 * @author HZW
 * @since 2024-11-11
 */

/**
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "ProductAttrAndNumberRequest", description = "商品规格id和数量对象")
public class ProductAttrAndNumberRequest implements Serializable {

    private static final long serialVersionUID = -452373239606480650L;

    @ApiModelProperty(value = "商品规格主键ID")
    @NotNull(message = "商品规格主键ID不能为空")
    private Integer shopSpecId;

    @ApiModelProperty(value = "购买的数量")
    @NotNull(message = "购买的数量不能为空")
    private Integer number;
}
